package com.example.job;

import com.example.job.annotations.Job;
import com.example.job.annotations.JobExecute;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Classname JobTestOne
 * @Description TODO
 * @Date 2022/8/2 17:31
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Job
public class JobTestOne {

    @JobExecute()
    public void run(){
        SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("【start-web】"+this.getClass()+"::"+dateFormat.format(new Date())+" 执行了");
    }
}
